Best Atoum code snippet using writer.write
Theme.php
Source:Theme.php
...14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15 * Lesser General Public License for more details.16 *17 * You should have received a copy of the GNU Lesser General Public18 * License along with this library; if not, write to the Free Software19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20 *21 * @category PHPExcel22 * @package PHPExcel_Writer_Excel200723 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL25 * @version 1.7.5, 2010-12-1026 */27/**28 * PHPExcel_Writer_Excel2007_DocProps29 *30 * @category PHPExcel31 * @package PHPExcel_Writer_Excel200732 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)33 */34class PHPExcel_Writer_Excel2007_Theme extends PHPExcel_Writer_Excel2007_WriterPart35{36 /**37 * Write theme to XML format38 *39 * @param PHPExcel $pPHPExcel 40 * @return string XML Output41 * @throws Exception42 */43 public function writeTheme(PHPExcel $pPHPExcel = null)44 {45 // Create XML writer46 $objWriter = null;47 if ($this->getParentWriter()->getUseDiskCaching()) {48 $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory());49 } else {50 $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY);51 }52 53 // XML header54 $objWriter->startDocument('1.0', 'UTF-8', 'yes');55 56 // a:theme57 $objWriter->startElement('a:theme');58 $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');59 $objWriter->writeAttribute('name', 'Office Theme');60 61 // a:themeElements62 $objWriter->startElement('a:themeElements');63 64 {65 // a:clrScheme66 $objWriter->startElement('a:clrScheme');67 $objWriter->writeAttribute('name', 'Office');68 69 // a:dk170 $objWriter->startElement('a:dk1');71 72 // a:sysClr73 $objWriter->startElement('a:sysClr');74 $objWriter->writeAttribute('val', 'windowText');75 $objWriter->writeAttribute('lastClr', '000000');76 $objWriter->endElement();77 78 $objWriter->endElement();79 80 // a:lt181 $objWriter->startElement('a:lt1');82 83 // a:sysClr84 $objWriter->startElement('a:sysClr');85 $objWriter->writeAttribute('val', 'window');86 $objWriter->writeAttribute('lastClr', 'FFFFFF');87 $objWriter->endElement();88 89 $objWriter->endElement();90 91 // a:dk292 $objWriter->startElement('a:dk2');93 94 // a:sysClr95 $objWriter->startElement('a:srgbClr');96 $objWriter->writeAttribute('val', '1F497D');97 $objWriter->endElement();98 99 $objWriter->endElement();100 101 // a:lt2102 $objWriter->startElement('a:lt2');103 104 // a:sysClr105 $objWriter->startElement('a:srgbClr');106 $objWriter->writeAttribute('val', 'EEECE1');107 $objWriter->endElement();108 109 $objWriter->endElement();110 111 // a:accent1112 $objWriter->startElement('a:accent1');113 114 // a:sysClr115 $objWriter->startElement('a:srgbClr');116 $objWriter->writeAttribute('val', '4F81BD');117 $objWriter->endElement();118 119 $objWriter->endElement();120 121 // a:accent2122 $objWriter->startElement('a:accent2');123 124 // a:sysClr125 $objWriter->startElement('a:srgbClr');126 $objWriter->writeAttribute('val', 'C0504D');127 $objWriter->endElement();128 129 $objWriter->endElement();130 131 // a:accent3132 $objWriter->startElement('a:accent3');133 134 // a:sysClr135 $objWriter->startElement('a:srgbClr');136 $objWriter->writeAttribute('val', '9BBB59');137 $objWriter->endElement();138 139 $objWriter->endElement();140 141 // a:accent4142 $objWriter->startElement('a:accent4');143 144 // a:sysClr145 $objWriter->startElement('a:srgbClr');146 $objWriter->writeAttribute('val', '8064A2');147 $objWriter->endElement();148 149 $objWriter->endElement();150 151 // a:accent5152 $objWriter->startElement('a:accent5');153 154 // a:sysClr155 $objWriter->startElement('a:srgbClr');156 $objWriter->writeAttribute('val', '4BACC6');157 $objWriter->endElement();158 159 $objWriter->endElement();160 161 // a:accent6162 $objWriter->startElement('a:accent6');163 164 // a:sysClr165 $objWriter->startElement('a:srgbClr');166 $objWriter->writeAttribute('val', 'F79646');167 $objWriter->endElement();168 169 $objWriter->endElement();170 171 // a:hlink172 $objWriter->startElement('a:hlink');173 174 // a:sysClr175 $objWriter->startElement('a:srgbClr');176 $objWriter->writeAttribute('val', '0000FF');177 $objWriter->endElement();178 179 $objWriter->endElement();180 181 // a:folHlink182 $objWriter->startElement('a:folHlink');183 184 // a:sysClr185 $objWriter->startElement('a:srgbClr');186 $objWriter->writeAttribute('val', '800080');187 $objWriter->endElement();188 189 $objWriter->endElement();190 191 $objWriter->endElement();192 }193 194 {195 // a:fontScheme196 $objWriter->startElement('a:fontScheme');197 $objWriter->writeAttribute('name', 'Office');198 199 // a:majorFont200 $objWriter->startElement('a:majorFont');201 202 // a:latin203 $objWriter->startElement('a:latin');204 $objWriter->writeAttribute('typeface', 'Cambria');205 $objWriter->endElement();206 207 // a:ea208 $objWriter->startElement('a:ea');209 $objWriter->writeAttribute('typeface', '');210 $objWriter->endElement();211 212 // a:cs213 $objWriter->startElement('a:cs');214 $objWriter->writeAttribute('typeface', '');215 $objWriter->endElement();216 217 // a:font218 $objWriter->startElement('a:font');219 $objWriter->writeAttribute('script', 'Jpan');220 $objWriter->writeAttribute('typeface', '?? ?????');221 $objWriter->endElement();222 223 // a:font224 $objWriter->startElement('a:font');225 $objWriter->writeAttribute('script', 'Hang');226 $objWriter->writeAttribute('typeface', '?? ??');227 $objWriter->endElement();228 229 // a:font230 $objWriter->startElement('a:font');231 $objWriter->writeAttribute('script', 'Hans');232 $objWriter->writeAttribute('typeface', '??');233 $objWriter->endElement();234 235 // a:font236 $objWriter->startElement('a:font');237 $objWriter->writeAttribute('script', 'Hant');238 $objWriter->writeAttribute('typeface', '????');239 $objWriter->endElement();240 241 // a:font242 $objWriter->startElement('a:font');243 $objWriter->writeAttribute('script', 'Arab');244 $objWriter->writeAttribute('typeface', 'Times New Roman');245 $objWriter->endElement();246 247 // a:font248 $objWriter->startElement('a:font');249 $objWriter->writeAttribute('script', 'Hebr');250 $objWriter->writeAttribute('typeface', 'Times New Roman');251 $objWriter->endElement();252 253 // a:font254 $objWriter->startElement('a:font');255 $objWriter->writeAttribute('script', 'Thai');256 $objWriter->writeAttribute('typeface', 'Tahoma');257 $objWriter->endElement();258 259 // a:font260 $objWriter->startElement('a:font');261 $objWriter->writeAttribute('script', 'Ethi');262 $objWriter->writeAttribute('typeface', 'Nyala');263 $objWriter->endElement();264 265 // a:font266 $objWriter->startElement('a:font');267 $objWriter->writeAttribute('script', 'Beng');268 $objWriter->writeAttribute('typeface', 'Vrinda');269 $objWriter->endElement();270 271 // a:font272 $objWriter->startElement('a:font');273 $objWriter->writeAttribute('script', 'Gujr');274 $objWriter->writeAttribute('typeface', 'Shruti');275 $objWriter->endElement();276 277 // a:font278 $objWriter->startElement('a:font');279 $objWriter->writeAttribute('script', 'Khmr');280 $objWriter->writeAttribute('typeface', 'MoolBoran');281 $objWriter->endElement();282 283 // a:font284 $objWriter->startElement('a:font');285 $objWriter->writeAttribute('script', 'Knda');286 $objWriter->writeAttribute('typeface', 'Tunga');287 $objWriter->endElement();288 289 // a:font290 $objWriter->startElement('a:font');291 $objWriter->writeAttribute('script', 'Guru');292 $objWriter->writeAttribute('typeface', 'Raavi');293 $objWriter->endElement();294 295 // a:font296 $objWriter->startElement('a:font');297 $objWriter->writeAttribute('script', 'Cans');298 $objWriter->writeAttribute('typeface', 'Euphemia');299 $objWriter->endElement();300 301 // a:font302 $objWriter->startElement('a:font');303 $objWriter->writeAttribute('script', 'Cher');304 $objWriter->writeAttribute('typeface', 'Plantagenet Cherokee');305 $objWriter->endElement();306 307 // a:font308 $objWriter->startElement('a:font');309 $objWriter->writeAttribute('script', 'Yiii');310 $objWriter->writeAttribute('typeface', 'Microsoft Yi Baiti');311 $objWriter->endElement();312 313 // a:font314 $objWriter->startElement('a:font');315 $objWriter->writeAttribute('script', 'Tibt');316 $objWriter->writeAttribute('typeface', 'Microsoft Himalaya');317 $objWriter->endElement();318 319 // a:font320 $objWriter->startElement('a:font');321 $objWriter->writeAttribute('script', 'Thaa');322 $objWriter->writeAttribute('typeface', 'MV Boli');323 $objWriter->endElement();324 325 // a:font326 $objWriter->startElement('a:font');327 $objWriter->writeAttribute('script', 'Deva');328 $objWriter->writeAttribute('typeface', 'Mangal');329 $objWriter->endElement();330 331 // a:font332 $objWriter->startElement('a:font');333 $objWriter->writeAttribute('script', 'Telu');334 $objWriter->writeAttribute('typeface', 'Gautami');335 $objWriter->endElement();336 337 // a:font338 $objWriter->startElement('a:font');339 $objWriter->writeAttribute('script', 'Taml');340 $objWriter->writeAttribute('typeface', 'Latha');341 $objWriter->endElement();342 343 // a:font344 $objWriter->startElement('a:font');345 $objWriter->writeAttribute('script', 'Syrc');346 $objWriter->writeAttribute('typeface', 'Estrangelo Edessa');347 $objWriter->endElement();348 349 // a:font350 $objWriter->startElement('a:font');351 $objWriter->writeAttribute('script', 'Orya');352 $objWriter->writeAttribute('typeface', 'Kalinga');353 $objWriter->endElement();354 355 // a:font356 $objWriter->startElement('a:font');357 $objWriter->writeAttribute('script', 'Mlym');358 $objWriter->writeAttribute('typeface', 'Kartika');359 $objWriter->endElement();360 361 // a:font362 $objWriter->startElement('a:font');363 $objWriter->writeAttribute('script', 'Laoo');364 $objWriter->writeAttribute('typeface', 'DokChampa');365 $objWriter->endElement();366 367 // a:font368 $objWriter->startElement('a:font');369 $objWriter->writeAttribute('script', 'Sinh');370 $objWriter->writeAttribute('typeface', 'Iskoola Pota');371 $objWriter->endElement();372 373 // a:font374 $objWriter->startElement('a:font');375 $objWriter->writeAttribute('script', 'Mong');376 $objWriter->writeAttribute('typeface', 'Mongolian Baiti');377 $objWriter->endElement();378 379 // a:font380 $objWriter->startElement('a:font');381 $objWriter->writeAttribute('script', 'Viet');382 $objWriter->writeAttribute('typeface', 'Times New Roman');383 $objWriter->endElement();384 385 // a:font386 $objWriter->startElement('a:font');387 $objWriter->writeAttribute('script', 'Uigh');388 $objWriter->writeAttribute('typeface', 'Microsoft Uighur');389 $objWriter->endElement();390 391 $objWriter->endElement();392 393 // a:minorFont394 $objWriter->startElement('a:minorFont');395 396 // a:latin397 $objWriter->startElement('a:latin');398 $objWriter->writeAttribute('typeface', 'Calibri');399 $objWriter->endElement();400 401 // a:ea402 $objWriter->startElement('a:ea');403 $objWriter->writeAttribute('typeface', '');404 $objWriter->endElement();405 406 // a:cs407 $objWriter->startElement('a:cs');408 $objWriter->writeAttribute('typeface', '');409 $objWriter->endElement();410 411 // a:font412 $objWriter->startElement('a:font');413 $objWriter->writeAttribute('script', 'Jpan');414 $objWriter->writeAttribute('typeface', '?? ?????');415 $objWriter->endElement();416 417 // a:font418 $objWriter->startElement('a:font');419 $objWriter->writeAttribute('script', 'Hang');420 $objWriter->writeAttribute('typeface', '?? ??');421 $objWriter->endElement();422 423 // a:font424 $objWriter->startElement('a:font');425 $objWriter->writeAttribute('script', 'Hans');426 $objWriter->writeAttribute('typeface', '??');427 $objWriter->endElement();428 429 // a:font430 $objWriter->startElement('a:font');431 $objWriter->writeAttribute('script', 'Hant');432 $objWriter->writeAttribute('typeface', '????');433 $objWriter->endElement();434 435 // a:font436 $objWriter->startElement('a:font');437 $objWriter->writeAttribute('script', 'Arab');438 $objWriter->writeAttribute('typeface', 'Arial');439 $objWriter->endElement();440 441 // a:font442 $objWriter->startElement('a:font');443 $objWriter->writeAttribute('script', 'Hebr');444 $objWriter->writeAttribute('typeface', 'Arial');445 $objWriter->endElement();446 447 // a:font448 $objWriter->startElement('a:font');449 $objWriter->writeAttribute('script', 'Thai');450 $objWriter->writeAttribute('typeface', 'Tahoma');451 $objWriter->endElement();452 453 // a:font454 $objWriter->startElement('a:font');455 $objWriter->writeAttribute('script', 'Ethi');456 $objWriter->writeAttribute('typeface', 'Nyala');457 $objWriter->endElement();458 459 // a:font460 $objWriter->startElement('a:font');461 $objWriter->writeAttribute('script', 'Beng');462 $objWriter->writeAttribute('typeface', 'Vrinda');463 $objWriter->endElement();464 465 // a:font466 $objWriter->startElement('a:font');467 $objWriter->writeAttribute('script', 'Gujr');468 $objWriter->writeAttribute('typeface', 'Shruti');469 $objWriter->endElement();470 471 // a:font472 $objWriter->startElement('a:font');473 $objWriter->writeAttribute('script', 'Khmr');474 $objWriter->writeAttribute('typeface', 'DaunPenh');475 $objWriter->endElement();476 477 // a:font478 $objWriter->startElement('a:font');479 $objWriter->writeAttribute('script', 'Knda');480 $objWriter->writeAttribute('typeface', 'Tunga');481 $objWriter->endElement();482 483 // a:font484 $objWriter->startElement('a:font');485 $objWriter->writeAttribute('script', 'Guru');486 $objWriter->writeAttribute('typeface', 'Raavi');487 $objWriter->endElement();488 489 // a:font490 $objWriter->startElement('a:font');491 $objWriter->writeAttribute('script', 'Cans');492 $objWriter->writeAttribute('typeface', 'Euphemia');493 $objWriter->endElement();494 495 // a:font496 $objWriter->startElement('a:font');497 $objWriter->writeAttribute('script', 'Cher');498 $objWriter->writeAttribute('typeface', 'Plantagenet Cherokee');499 $objWriter->endElement();500 501 // a:font502 $objWriter->startElement('a:font');503 $objWriter->writeAttribute('script', 'Yiii');504 $objWriter->writeAttribute('typeface', 'Microsoft Yi Baiti');505 $objWriter->endElement();506 507 // a:font508 $objWriter->startElement('a:font');509 $objWriter->writeAttribute('script', 'Tibt');510 $objWriter->writeAttribute('typeface', 'Microsoft Himalaya');511 $objWriter->endElement();512 513 // a:font514 $objWriter->startElement('a:font');515 $objWriter->writeAttribute('script', 'Thaa');516 $objWriter->writeAttribute('typeface', 'MV Boli');517 $objWriter->endElement();518 519 // a:font520 $objWriter->startElement('a:font');521 $objWriter->writeAttribute('script', 'Deva');522 $objWriter->writeAttribute('typeface', 'Mangal');523 $objWriter->endElement();524 525 // a:font526 $objWriter->startElement('a:font');527 $objWriter->writeAttribute('script', 'Telu');528 $objWriter->writeAttribute('typeface', 'Gautami');529 $objWriter->endElement();530 531 // a:font532 $objWriter->startElement('a:font');533 $objWriter->writeAttribute('script', 'Taml');534 $objWriter->writeAttribute('typeface', 'Latha');535 $objWriter->endElement();536 537 // a:font538 $objWriter->startElement('a:font');539 $objWriter->writeAttribute('script', 'Syrc');540 $objWriter->writeAttribute('typeface', 'Estrangelo Edessa');541 $objWriter->endElement();542 543 // a:font544 $objWriter->startElement('a:font');545 $objWriter->writeAttribute('script', 'Orya');546 $objWriter->writeAttribute('typeface', 'Kalinga');547 $objWriter->endElement();548 549 // a:font550 $objWriter->startElement('a:font');551 $objWriter->writeAttribute('script', 'Mlym');552 $objWriter->writeAttribute('typeface', 'Kartika');553 $objWriter->endElement();554 555 // a:font556 $objWriter->startElement('a:font');557 $objWriter->writeAttribute('script', 'Laoo');558 $objWriter->writeAttribute('typeface', 'DokChampa');559 $objWriter->endElement();560 561 // a:font562 $objWriter->startElement('a:font');563 $objWriter->writeAttribute('script', 'Sinh');564 $objWriter->writeAttribute('typeface', 'Iskoola Pota');565 $objWriter->endElement();566 567 // a:font568 $objWriter->startElement('a:font');569 $objWriter->writeAttribute('script', 'Mong');570 $objWriter->writeAttribute('typeface', 'Mongolian Baiti');571 $objWriter->endElement();572 573 // a:font574 $objWriter->startElement('a:font');575 $objWriter->writeAttribute('script', 'Viet');576 $objWriter->writeAttribute('typeface', 'Arial');577 $objWriter->endElement();578 579 // a:font580 $objWriter->startElement('a:font');581 $objWriter->writeAttribute('script', 'Uigh');582 $objWriter->writeAttribute('typeface', 'Microsoft Uighur');583 $objWriter->endElement();584 585 $objWriter->endElement();586 587 $objWriter->endElement();588 }589 590 {591 // a:fmtScheme592 $objWriter->startElement('a:fmtScheme');593 $objWriter->writeAttribute('name', 'Office');594 595 // a:fillStyleLst596 $objWriter->startElement('a:fillStyleLst');597 598 // a:solidFill599 $objWriter->startElement('a:solidFill');600 601 // a:schemeClr602 $objWriter->startElement('a:schemeClr');603 $objWriter->writeAttribute('val', 'phClr');604 $objWriter->endElement();605 606 $objWriter->endElement();607 608 // a:gradFill609 $objWriter->startElement('a:gradFill');610 $objWriter->writeAttribute('rotWithShape', '1');611 612 // a:gsLst613 $objWriter->startElement('a:gsLst');614 615 // a:gs616 $objWriter->startElement('a:gs');617 $objWriter->writeAttribute('pos', '0');618 619 // a:schemeClr620 $objWriter->startElement('a:schemeClr');621 $objWriter->writeAttribute('val', 'phClr');622 623 // a:tint624 $objWriter->startElement('a:tint');625 $objWriter->writeAttribute('val', '50000');626 $objWriter->endElement();627 628 // a:satMod629 $objWriter->startElement('a:satMod');630 $objWriter->writeAttribute('val', '300000');631 $objWriter->endElement();632 633 $objWriter->endElement();634 635 $objWriter->endElement();636 637 // a:gs638 $objWriter->startElement('a:gs');639 $objWriter->writeAttribute('pos', '35000');640 641 // a:schemeClr642 $objWriter->startElement('a:schemeClr');643 $objWriter->writeAttribute('val', 'phClr');644 645 // a:tint646 $objWriter->startElement('a:tint');647 $objWriter->writeAttribute('val', '37000');648 $objWriter->endElement();649 650 // a:satMod651 $objWriter->startElement('a:satMod');652 $objWriter->writeAttribute('val', '300000');653 $objWriter->endElement();654 655 $objWriter->endElement();656 657 $objWriter->endElement();658 659 // a:gs660 $objWriter->startElement('a:gs');661 $objWriter->writeAttribute('pos', '100000');662 663 // a:schemeClr664 $objWriter->startElement('a:schemeClr');665 $objWriter->writeAttribute('val', 'phClr');666 667 // a:tint668 $objWriter->startElement('a:tint');669 $objWriter->writeAttribute('val', '15000');670 $objWriter->endElement();671 672 // a:satMod673 $objWriter->startElement('a:satMod');674 $objWriter->writeAttribute('val', '350000');675 $objWriter->endElement();676 677 $objWriter->endElement();678 679 $objWriter->endElement();680 681 $objWriter->endElement();682 683 // a:lin684 $objWriter->startElement('a:lin');685 $objWriter->writeAttribute('ang', '16200000');686 $objWriter->writeAttribute('scaled', '1');687 $objWriter->endElement();688 689 $objWriter->endElement();690 691 // a:gradFill692 $objWriter->startElement('a:gradFill');693 $objWriter->writeAttribute('rotWithShape', '1');694 695 // a:gsLst696 $objWriter->startElement('a:gsLst');697 698 // a:gs699 $objWriter->startElement('a:gs');700 $objWriter->writeAttribute('pos', '0');701 702 // a:schemeClr703 $objWriter->startElement('a:schemeClr');704 $objWriter->writeAttribute('val', 'phClr');705 706 // a:shade707 $objWriter->startElement('a:shade');708 $objWriter->writeAttribute('val', '51000');709 $objWriter->endElement();710 711 // a:satMod712 $objWriter->startElement('a:satMod');713 $objWriter->writeAttribute('val', '130000');714 $objWriter->endElement();715 716 $objWriter->endElement();717 718 $objWriter->endElement();719 720 // a:gs721 $objWriter->startElement('a:gs');722 $objWriter->writeAttribute('pos', '80000');723 724 // a:schemeClr725 $objWriter->startElement('a:schemeClr');726 $objWriter->writeAttribute('val', 'phClr');727 728 // a:shade729 $objWriter->startElement('a:shade');730 $objWriter->writeAttribute('val', '93000');731 $objWriter->endElement();732 733 // a:satMod734 $objWriter->startElement('a:satMod');735 $objWriter->writeAttribute('val', '130000');736 $objWriter->endElement();737 738 $objWriter->endElement();739 740 $objWriter->endElement();741 742 // a:gs743 $objWriter->startElement('a:gs');744 $objWriter->writeAttribute('pos', '100000');745 746 // a:schemeClr747 $objWriter->startElement('a:schemeClr');748 $objWriter->writeAttribute('val', 'phClr');749 750 // a:shade751 $objWriter->startElement('a:shade');752 $objWriter->writeAttribute('val', '94000');753 $objWriter->endElement();754 755 // a:satMod756 $objWriter->startElement('a:satMod');757 $objWriter->writeAttribute('val', '135000');758 $objWriter->endElement();759 760 $objWriter->endElement();761 762 $objWriter->endElement();763 764 $objWriter->endElement();765 766 // a:lin767 $objWriter->startElement('a:lin');768 $objWriter->writeAttribute('ang', '16200000');769 $objWriter->writeAttribute('scaled', '0');770 $objWriter->endElement();771 772 $objWriter->endElement();773 774 $objWriter->endElement();775 776 // a:lnStyleLst777 $objWriter->startElement('a:lnStyleLst');778 779 // a:ln780 $objWriter->startElement('a:ln');781 $objWriter->writeAttribute('w', '9525');782 $objWriter->writeAttribute('cap', 'flat');783 $objWriter->writeAttribute('cmpd', 'sng');784 $objWriter->writeAttribute('algn', 'ctr');785 786 // a:solidFill787 $objWriter->startElement('a:solidFill');788 789 // a:schemeClr790 $objWriter->startElement('a:schemeClr');791 $objWriter->writeAttribute('val', 'phClr');792 793 // a:shade794 $objWriter->startElement('a:shade');795 $objWriter->writeAttribute('val', '95000');796 $objWriter->endElement();797 798 // a:satMod799 $objWriter->startElement('a:satMod');800 $objWriter->writeAttribute('val', '105000');801 $objWriter->endElement();802 803 $objWriter->endElement();804 805 $objWriter->endElement();806 807 // a:prstDash808 $objWriter->startElement('a:prstDash');809 $objWriter->writeAttribute('val', 'solid');810 $objWriter->endElement();811 812 $objWriter->endElement();813 814 // a:ln815 $objWriter->startElement('a:ln');816 $objWriter->writeAttribute('w', '25400');817 $objWriter->writeAttribute('cap', 'flat');818 $objWriter->writeAttribute('cmpd', 'sng');819 $objWriter->writeAttribute('algn', 'ctr');820 821 // a:solidFill822 $objWriter->startElement('a:solidFill');823 824 // a:schemeClr825 $objWriter->startElement('a:schemeClr');826 $objWriter->writeAttribute('val', 'phClr');827 $objWriter->endElement();828 829 $objWriter->endElement();830 831 // a:prstDash832 $objWriter->startElement('a:prstDash');833 $objWriter->writeAttribute('val', 'solid');834 $objWriter->endElement();835 836 $objWriter->endElement();837 838 // a:ln839 $objWriter->startElement('a:ln');840 $objWriter->writeAttribute('w', '38100');841 $objWriter->writeAttribute('cap', 'flat');842 $objWriter->writeAttribute('cmpd', 'sng');843 $objWriter->writeAttribute('algn', 'ctr');844 845 // a:solidFill846 $objWriter->startElement('a:solidFill');847 848 // a:schemeClr849 $objWriter->startElement('a:schemeClr');850 $objWriter->writeAttribute('val', 'phClr');851 $objWriter->endElement();852 853 $objWriter->endElement();854 855 // a:prstDash856 $objWriter->startElement('a:prstDash');857 $objWriter->writeAttribute('val', 'solid');858 $objWriter->endElement();859 860 $objWriter->endElement();861 862 $objWriter->endElement();863 864 // a:effectStyleLst865 $objWriter->startElement('a:effectStyleLst');866 867 // a:effectStyle868 $objWriter->startElement('a:effectStyle');869 870 // a:effectLst871 $objWriter->startElement('a:effectLst');872 873 // a:outerShdw874 $objWriter->startElement('a:outerShdw');875 $objWriter->writeAttribute('blurRad', '40000');876 $objWriter->writeAttribute('dist', '20000');877 $objWriter->writeAttribute('dir', '5400000');878 $objWriter->writeAttribute('rotWithShape', '0');879 880 // a:srgbClr881 $objWriter->startElement('a:srgbClr');882 $objWriter->writeAttribute('val', '000000');883 884 // a:alpha885 $objWriter->startElement('a:alpha');886 $objWriter->writeAttribute('val', '38000');887 $objWriter->endElement();888 889 $objWriter->endElement();890 891 $objWriter->endElement();892 893 $objWriter->endElement();894 895 $objWriter->endElement();896 897 // a:effectStyle898 $objWriter->startElement('a:effectStyle');899 900 // a:effectLst901 $objWriter->startElement('a:effectLst');902 903 // a:outerShdw904 $objWriter->startElement('a:outerShdw');905 $objWriter->writeAttribute('blurRad', '40000');906 $objWriter->writeAttribute('dist', '23000');907 $objWriter->writeAttribute('dir', '5400000');908 $objWriter->writeAttribute('rotWithShape', '0');909 910 // a:srgbClr911 $objWriter->startElement('a:srgbClr');912 $objWriter->writeAttribute('val', '000000');913 914 // a:alpha915 $objWriter->startElement('a:alpha');916 $objWriter->writeAttribute('val', '35000');917 $objWriter->endElement();918 919 $objWriter->endElement();920 921 $objWriter->endElement();922 923 $objWriter->endElement();924 925 $objWriter->endElement();926 927 // a:effectStyle928 $objWriter->startElement('a:effectStyle');929 930 // a:effectLst931 $objWriter->startElement('a:effectLst');932 933 // a:outerShdw934 $objWriter->startElement('a:outerShdw');935 $objWriter->writeAttribute('blurRad', '40000');936 $objWriter->writeAttribute('dist', '23000');937 $objWriter->writeAttribute('dir', '5400000');938 $objWriter->writeAttribute('rotWithShape', '0');939 940 // a:srgbClr941 $objWriter->startElement('a:srgbClr');942 $objWriter->writeAttribute('val', '000000');943 944 // a:alpha945 $objWriter->startElement('a:alpha');946 $objWriter->writeAttribute('val', '35000');947 $objWriter->endElement();948 949 $objWriter->endElement();950 951 $objWriter->endElement();952 953 $objWriter->endElement();954 955 // a:scene3d956 $objWriter->startElement('a:scene3d');957 958 // a:camera959 $objWriter->startElement('a:camera');960 $objWriter->writeAttribute('prst', 'orthographicFront');961 962 // a:rot963 $objWriter->startElement('a:rot');964 $objWriter->writeAttribute('lat', '0');965 $objWriter->writeAttribute('lon', '0');966 $objWriter->writeAttribute('rev', '0');967 $objWriter->endElement();968 969 $objWriter->endElement();970 971 // a:lightRig972 $objWriter->startElement('a:lightRig');973 $objWriter->writeAttribute('rig', 'threePt');974 $objWriter->writeAttribute('dir', 't');975 976 // a:rot977 $objWriter->startElement('a:rot');978 $objWriter->writeAttribute('lat', '0');979 $objWriter->writeAttribute('lon', '0');980 $objWriter->writeAttribute('rev', '1200000');981 $objWriter->endElement();982 983 $objWriter->endElement();984 985 $objWriter->endElement();986 987 // a:sp3d988 $objWriter->startElement('a:sp3d');989 990 // a:bevelT991 $objWriter->startElement('a:bevelT');992 $objWriter->writeAttribute('w', '63500');993 $objWriter->writeAttribute('h', '25400');994 $objWriter->endElement();995 996 $objWriter->endElement();997 998 $objWriter->endElement();999 1000 $objWriter->endElement();1001 1002 // a:bgFillStyleLst1003 $objWriter->startElement('a:bgFillStyleLst');1004 1005 // a:solidFill1006 $objWriter->startElement('a:solidFill');1007 1008 // a:schemeClr1009 $objWriter->startElement('a:schemeClr');1010 $objWriter->writeAttribute('val', 'phClr');1011 $objWriter->endElement();1012 1013 $objWriter->endElement();1014 1015 // a:gradFill1016 $objWriter->startElement('a:gradFill');1017 $objWriter->writeAttribute('rotWithShape', '1');1018 1019 // a:gsLst1020 $objWriter->startElement('a:gsLst');1021 1022 // a:gs1023 $objWriter->startElement('a:gs');1024 $objWriter->writeAttribute('pos', '0');1025 1026 // a:schemeClr1027 $objWriter->startElement('a:schemeClr');1028 $objWriter->writeAttribute('val', 'phClr');1029 1030 // a:tint1031 $objWriter->startElement('a:tint');1032 $objWriter->writeAttribute('val', '40000');1033 $objWriter->endElement();1034 1035 // a:satMod1036 $objWriter->startElement('a:satMod');1037 $objWriter->writeAttribute('val', '350000');1038 $objWriter->endElement();1039 1040 $objWriter->endElement();1041 1042 $objWriter->endElement();1043 1044 // a:gs1045 $objWriter->startElement('a:gs');1046 $objWriter->writeAttribute('pos', '40000');1047 1048 // a:schemeClr1049 $objWriter->startElement('a:schemeClr');1050 $objWriter->writeAttribute('val', 'phClr');1051 1052 // a:tint1053 $objWriter->startElement('a:tint');1054 $objWriter->writeAttribute('val', '45000');1055 $objWriter->endElement();1056 1057 // a:shade1058 $objWriter->startElement('a:shade');1059 $objWriter->writeAttribute('val', '99000');1060 $objWriter->endElement();1061 1062 // a:satMod1063 $objWriter->startElement('a:satMod');1064 $objWriter->writeAttribute('val', '350000');1065 $objWriter->endElement();1066 1067 $objWriter->endElement();1068 1069 $objWriter->endElement();1070 1071 // a:gs1072 $objWriter->startElement('a:gs');1073 $objWriter->writeAttribute('pos', '100000');1074 1075 // a:schemeClr1076 $objWriter->startElement('a:schemeClr');1077 $objWriter->writeAttribute('val', 'phClr');1078 1079 // a:shade1080 $objWriter->startElement('a:shade');1081 $objWriter->writeAttribute('val', '20000');1082 $objWriter->endElement();1083 1084 // a:satMod1085 $objWriter->startElement('a:satMod');1086 $objWriter->writeAttribute('val', '255000');1087 $objWriter->endElement();1088 1089 $objWriter->endElement();1090 1091 $objWriter->endElement();1092 1093 $objWriter->endElement();1094 1095 // a:path1096 $objWriter->startElement('a:path');1097 $objWriter->writeAttribute('path', 'circle');1098 1099 // a:fillToRect1100 $objWriter->startElement('a:fillToRect');1101 $objWriter->writeAttribute('l', '50000');1102 $objWriter->writeAttribute('t', '-80000');1103 $objWriter->writeAttribute('r', '50000');1104 $objWriter->writeAttribute('b', '180000');1105 $objWriter->endElement();1106 1107 $objWriter->endElement();1108 1109 $objWriter->endElement();1110 1111 // a:gradFill1112 $objWriter->startElement('a:gradFill');1113 $objWriter->writeAttribute('rotWithShape', '1');1114 1115 // a:gsLst1116 $objWriter->startElement('a:gsLst');1117 1118 // a:gs1119 $objWriter->startElement('a:gs');1120 $objWriter->writeAttribute('pos', '0');1121 1122 // a:schemeClr1123 $objWriter->startElement('a:schemeClr');1124 $objWriter->writeAttribute('val', 'phClr');1125 1126 // a:tint1127 $objWriter->startElement('a:tint');1128 $objWriter->writeAttribute('val', '80000');1129 $objWriter->endElement();1130 1131 // a:satMod1132 $objWriter->startElement('a:satMod');1133 $objWriter->writeAttribute('val', '300000');1134 $objWriter->endElement();1135 1136 $objWriter->endElement();1137 1138 $objWriter->endElement();1139 1140 // a:gs1141 $objWriter->startElement('a:gs');1142 $objWriter->writeAttribute('pos', '100000');1143 1144 // a:schemeClr1145 $objWriter->startElement('a:schemeClr');1146 $objWriter->writeAttribute('val', 'phClr');1147 1148 // a:shade1149 $objWriter->startElement('a:shade');1150 $objWriter->writeAttribute('val', '30000');1151 $objWriter->endElement();1152 1153 // a:satMod1154 $objWriter->startElement('a:satMod');1155 $objWriter->writeAttribute('val', '200000');1156 $objWriter->endElement();1157 1158 $objWriter->endElement();1159 1160 $objWriter->endElement();1161 1162 $objWriter->endElement();1163 1164 // a:path1165 $objWriter->startElement('a:path');1166 $objWriter->writeAttribute('path', 'circle');1167 1168 // a:fillToRect1169 $objWriter->startElement('a:fillToRect');1170 $objWriter->writeAttribute('l', '50000');1171 $objWriter->writeAttribute('t', '50000');1172 $objWriter->writeAttribute('r', '50000');1173 $objWriter->writeAttribute('b', '50000');1174 $objWriter->endElement();1175 1176 $objWriter->endElement();1177 1178 $objWriter->endElement();1179 1180 $objWriter->endElement();1181 1182 $objWriter->endElement();1183 }1184 1185 $objWriter->endElement();1186 1187 // a:objectDefaults1188 $objWriter->writeElement('a:objectDefaults', null);1189 1190 // a:extraClrSchemeLst1191 $objWriter->writeElement('a:extraClrSchemeLst', null);1192 1193 $objWriter->endElement();1194 1195 // Return1196 return $objWriter->getData();1197 }1198}...
write
Using AI Code Generation
1$writer = new Writer();2$writer->write($filename, $data);3$writer = new Writer();4$writer->write($filename, $data);5namespace MyProject;6{7}8namespace MyProject;9$writer = new Writer();10namespace MyProject;11{12}13$writer = new Writer();14{15}16$writer = new Writer();17include('path/to/file/containing/Writer/class');18$writer = new Writer();
write
Using AI Code Generation
1$writer->write("Hello World");2$writer->write("Hello World");3$writer->write("Hello World");4$writer->write("Hello World");5$writer->write("Hello World");6$writer->write("Hello World");7$writer->write("Hello World");8$writer->write("Hello World");9$writer->write("Hello World");10$writer->write("Hello World");11$writer->write("Hello World");12$writer->write("Hello World");13$writer->write("Hello World");14$writer->write("Hello World");15$writer->write("Hello World");16$writer->write("Hello World");17$writer->write("Hello World");18$writer->write("Hello World");19$writer->write("Hello World");20$writer->write("Hello World");
write
Using AI Code Generation
1$writer = new Writer();2$writer->write("Hello World");3$reader = new Reader();4$reader->read();5$writer = new Writer();6$writer->read();7$reader = new Reader();8$reader->write("Hello World");
write
Using AI Code Generation
1$writer = new Writer();2$writer->write("Hello World");3$reader = new Reader();4echo $reader->read();5$reader = new Reader();6echo $reader->read();7require_once('Writer.php');8require_once('Reader.php');9require_once('Reader.php');10require_once('Reader.php');11include_once('Writer.php');12include_once('Reader.php');
write
Using AI Code Generation
1$writer = new Writer();2$writer->write('Hello World');3$writer = new Writer();4echo $writer->read();5$writer = new Writer();6$writer->write('Hello World');7$writer = new Writer();8echo $writer->read();9$writer = new Writer();10$writer->write('Hello World');11$writer = new Writer();12echo $writer->read();13$writer = new Writer();14$writer->write('Hello World');15$writer = new Writer();16echo $writer->read();17$writer = new Writer();18$writer->write('Hello World');19$writer = new Writer();20echo $writer->read();21$writer = new Writer();22$writer->write('Hello World');23$writer = new Writer();24echo $writer->read();25$writer = new Writer();26$writer->write('Hello World');27$writer = new Writer();28echo $writer->read();29$writer = new Writer();30$writer->write('Hello World');31$writer = new Writer();32echo $writer->read();33$writer = new Writer();34$writer->write('Hello World');
write
Using AI Code Generation
1$writer = new Writer();2$writer->write("Hello World");3$writer = new Writer();4$writer->write("Hello World");5$writer = new Writer();6$writer->write("Hello World");7$writer = new Writer();8$writer->write("Hello World");9$writer = new Writer();10$writer->write("Hello World");11$writer = new Writer();12$writer->write("Hello World");13$writer = new Writer();14$writer->write("Hello World");15$writer = new Writer();16$writer->write("Hello World");17$writer = new Writer();18$writer->write("Hello World");19$writer = new Writer();20$writer->write("Hello World");21$writer = new Writer();22$writer->write("Hello World");23$writer = new Writer();24$writer->write("Hello World");
write
Using AI Code Generation
1$writer->write("Hello World");2$writer->read();3public function __call($name, $arguments)4{5 private function write($text)6 {7 echo $text;8 }9 public function __call($name, $arguments)10 {11 if ($name == 'write') {12 if (count($arguments) == 1) {13 $this->write($arguments[0]);14 }15 }16 }17}18$writer = new Writer();19$writer->write("Hello World");20public static function __callStatic($name, $arguments)21{22 private static function write($text)23 {24 echo $text;25 }26 public static function __callStatic($name, $arguments)27 {28 if ($name == 'write') {29 if (count($arguments) == 1) {30 self::write($arguments[0]);31 }32 }33 }34}35Writer::write("Hello World");
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with write on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!